package com.wsoft.bpm.enums;

/**
 * 监听器类型
 *
 * @Author zhonglj
 * @Date 2024-09-19 15:38
 */
public enum ListenerType {
    /**
     * javaClass
     */
    JAVA_CLASS("javaClass", "通过Java类实现监听器逻辑，适合复杂的逻辑"),
    /**
     * expression
     */
    EXPRESSION("expression", "通过表达式实现监听器逻辑，适合简单的逻辑"),
    /**
     * delegateExpression
     */
    DELEGATE_EXPRESSION("delegateExpression", "通过委托表达式实现监听器逻辑，适合复杂的逻辑，可以通过Spring依赖注入机制注入服务");

    private String value;
    private String description;

    ListenerType(String value, String description) {
        this.value = value;
        this.description = description;
    }

    public String getValue() {
        return value;
    }
}
